import os

import yaml

def load_config(cfg_path):
    with open(cfg_path, "r") as f:
        params = yaml.load(f)
        globals().update(params)


cfg_path = os.path.join(os.path.dirname(__file__), "config.yaml")
load_config(cfg_path)
